﻿@{
    ViewData["Title"] = "ShowEarTag";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div style="margin:20px 20px">
    <div style="margin:60px 60px">
        <table>
            <tr>
                <td>
                    <label class="layui-form-label">耳号</label>
                    <div class="layui-input-inline">
                        <input class="layui-input" id="earNumber" autocomplete="off">
                    </div>
                </td>
                <td>
                    <div class="layui-form layui-row layui-col-space16">
                        <label class="layui-form-label">请选择品种</label>
                        <div class="layui-input-block" style="width:200px">
                            <select name="breed" id="sheepBreed" >
                                <option value="">请选择品种</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td>
                    <div class="layui-form layui-row layui-col-space16">
                        <label class="layui-form-label">出生状态</label>
                        <div class="layui-input-block" style="width:200px">
                            <select name="stause" id="BirthStatus" lay-filter="breedSelect">
                                <option value="">对应出生状态</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td>
                    <button type="button" class="layui-btn layui-btn-primary" id="searchBtn"><i class="layui-icon"></i> 搜 索</button>
                    <div class="layui-inline">
                        <a class="layui-btn layui-btn-danger layui-btn-normal delAll_btn">批量删除</a>
                    </div>

                    <div class="layui-inline">
                        <button type="button" class="layui-btn" onclick="onAddBtn()">添加</button>
                    </div>
                </td>

            </tr>
        </table>

        <table id="ID-table-demo-setRowChecked"></table>
        <div id="pagesbox"></div>

        <!--弹出框新增/编辑-->

        <div id="add-main" style="display: none;">
            <form class="layui-form" id="add-form" action="" lay-filter="dataPage">
                <div class="layui-form">
                    <div class="layui-form-item">

                        <div class="layui-inline">

                            <div class="layui-form-item">
                              <label class="layui-form-label"> <i style="color:red">*</i>入库日期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input" id="storageDate" name="storageDate" placeholder="yyyy-MM-dd">
                                </div>
                            </div>

                            <div class="layui-form-item">
                                <label class="layui-form-label"><i style="color:red">*</i>请选择品种</label>
                                <div class="layui-input-block">
                                    <select name="breed" id="sheepBreedAdds" name="sheepBreedAdd" lay-filter="breedSelect">
                                        <option value="">请选择品种</option>
                                    </select>
                                </div>
                            </div>

                            <div class="layui-form-item">
                                <label class="layui-form-label"><i style="color:red">*</i>对应出生状态</label>
                                <div class="layui-input-block">
                                    <select name="breed" id="birthStatusAdds" name="birthStatusAdd" lay-filter="breedSelect">
                                        <option value="">对应出生状态</option>
                                    </select>
                                </div>
                            </div>

                            <div class="layui-form">
                                <label class="layui-form-label" style="width: 100px"><i style="color:red">*</i>添加方式</label>
                                <input type="radio" name="insertType" value="1" title="单个新增" checked>
                                <input type="radio" name="insertType" value="2" title="批量新增">
                            </div>


                            <div class="layui-form-item" style="display: inline-block;">
                                <label class="layui-form-label"><i style="color:red">*</i>耳号：</label>
                                <div class="layui-input-inline">
                                    <input class="layui-input" id="earNumbers" name="earNumber" autocomplete="off">
                                </div>
                            </div>

                            <input type="hidden" name="earTagId">
                            <input type="hidden" name="usageStatu">
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit lay-filter="save">立即提交</button>
                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                </div>
                            </div>

            </form>
        </div>

    </div>
    <table id="dataTable" lay-filter="tableItem"></table>

</div>


<script src="~/js/eartag/showeartag.js?ASC=" +new Date()></script>

<script type="text/html" id="barDemo">
     <a class="layui-btn layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit">编辑</i></a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delete">删除</a>
</script>

